const Koa = require("koa");
const app = new Koa();

const router = require("./router");

// 启动应用
const port = process.env.PORT || 3000;

router(app);
app.listen(port, () => {
  console.log(`服务跑在${port}端口上`);
});
